package b2.widget.rank
{
	import b2.config.*;
	import b2.net.*;
	import b2.player.*;
	import b2.widget.tab.*;
	
	import flash.display.Sprite;
	import flash.filters.*;
	import flash.text.*;


	public class RankingTab extends Tab
	{
		private var type:int;
		private const RANK_NAME:Array = ["战力排行", "等级排行", "军衔排行"];
		
		//0, 战力排行; 1, 等级排行; 2, 荣誉排行	
		public function RankingTab(type:int)
		{
			this.type = type;
			super(RANK_NAME[type], 1, 5, 1);
//			//排名
//			var rankingText:TextField = new TextField();
//			rankingText.selectable = false;
//        	rankingText.autoSize = TextFieldAutoSize.CENTER;
//			rankingText.defaultTextFormat = new TextFormat("微软雅黑", 12, 0xFFFFFF);
//			rankingText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
//			rankingText.text = "排名";
//			rankingText.x = 20;
//			rankingText.y = -28;
//			addChild(rankingText);
//			//用户名字
//			var playerNameText:TextField = new TextField();
//			playerNameText.selectable = false;
//        	playerNameText.autoSize = TextFieldAutoSize.CENTER;
//			playerNameText.defaultTextFormat = new TextFormat("微软雅黑", 12, 0xFFFFFF);
//			playerNameText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
//			playerNameText.text = "用户名称";
//			playerNameText.x = 80;
//			playerNameText.y = -28;
//			addChild(playerNameText);
//			//用户名字
//			var tankNameText:TextField = new TextField();
//			tankNameText.selectable = false;
//        	tankNameText.autoSize = TextFieldAutoSize.CENTER;
//			tankNameText.defaultTextFormat = new TextFormat("微软雅黑", 12, 0xFFFFFF);
//			tankNameText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
//			tankNameText.text = "坦克名称";
//			tankNameText.x = 160;
//			tankNameText.y = -28;
//			addChild(tankNameText);
//			//用户名字
//			var numText:TextField = new TextField();
//			numText.selectable = false;
//        	numText.autoSize = TextFieldAutoSize.CENTER;
//			numText.defaultTextFormat = new TextFormat("微软雅黑", 12, 0xFFFFFF);
//			numText.filters = [new GlowFilter(0x000000, 1, 1.3, 1.3, 100, BitmapFilterQuality.HIGH)];
//			numText.text = RANK_NAME[type].substr(0, 2)
//			numText.x = 320;
//			numText.y = -28;
//			addChild(numText);
		}
		
	}
}